const mongoose = require('mongoose');
var Schema = mongoose.Schema;

var commentSchema=new Schema({
    star:Number,
    content:String,
    createTime:Date,
    reply:{
        content:String,
        createTime:Date
    },
    merchant:{type:String,ref:'Merchant'},
    order:{type:Schema.Types.ObjectId,ref:'Order'}
});

mongoose.model('Comment',commentSchema);

